<?php

namespace app\model;

use think\Model;

class TUser extends Model
{
    protected $table = 't_user';

    public function dealData()
    {
        $execute = $this->where('t_company', 'like', '%' . '事务所' . '%');
        return $execute
            ->update(['t_type' => 1]);
    }
}